home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Human-Clearlooks / gtk-2.0 / gtkrc
Encoding:
Text File  |  2009-03-30  |  11.9 KB  |  443 lines

  1. # Ubuntu Human-Clearlooks Colorscheme
  2. #
  3. # Authors:
  4. # Kenneth Wimar <kwwii@ubuntu.com>
  5. # Conn O'Griofa <connogriofa@gmail.com>
  6. #
  7. # Feel free to modify and share!
  8.  
  9. gtk_color_scheme = "fg_color:#101010\nbg_color:#EFEBE7\nbase_color:#FFF\ntext_color:#1A1A1A\nselected_bg_color:#FFA443\nselected_fg_color:#1A1A1A\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000"
  10.  
  11. style "clearlooks-default"
  12. {
  13.     ########
  14.     # Style Properties
  15.     ########
  16.     GtkButton      ::child-displacement-x = 1
  17.     GtkButton      ::child-displacement-y = 1
  18.     GtkButton      ::default-border       = { 0, 0, 0, 0 }
  19.     GtkCheckButton ::indicator-size       = 14
  20.  
  21.     GtkPaned       ::handle-size          = 6
  22.  
  23.     GtkRange       ::trough-border        = 0
  24.     GtkRange       ::slider-width         = 15
  25.     GtkRange       ::stepper-size         = 15
  26.  
  27.     GtkScale       ::slider-length        = 30
  28.     GtkScale       ::trough-side-details  = 1    # Restores sliders
  29.     GtkScrollbar   ::min-slider-length    = 30
  30.  
  31.     GtkMenuBar     ::internal-padding     = 0
  32.     GtkExpander    ::expander-size        = 16
  33.     GtkToolbar     ::internal-padding     = 1
  34.     GtkTreeView    ::expander-size        = 14
  35.     GtkTreeView    ::vertical-separator   = 0
  36.  
  37.     GtkMenu        ::horizontal-padding   = 0
  38.     GtkMenu        ::vertical-padding     = 0
  39.  
  40.     # Glow the tasklist by changing the color, instead of overlaying it with a rectangle
  41.     WnckTasklist   ::fade-overlay-rect    = 0
  42.  
  43.     #GtkWidget ¬† ¬† ¬†::link-color ¬† ¬† ¬† ¬†   = @fg_color
  44.     #GtkWidget ¬† ¬† ¬†::visited-link-color   = shade (0.2, @fg_color)
  45.  
  46.     xthickness = 1
  47.     ythickness = 1
  48.  
  49.     fg[NORMAL]        = @fg_color
  50.     fg[PRELIGHT]      = @fg_color
  51.     fg[ACTIVE]        = @fg_color
  52.     fg[SELECTED]      = @selected_fg_color
  53.     fg[INSENSITIVE]   = darker (@bg_color)
  54.  
  55.     bg[NORMAL]        = @bg_color
  56.     bg[PRELIGHT]      = shade (1.02, @bg_color)
  57.     bg[ACTIVE]        = shade (0.9, @bg_color)
  58.     bg[SELECTED]      = mix (0.25, @tooltip_fg_color, @selected_bg_color) # Gnome Appearances Preferences workaround
  59.     bg[INSENSITIVE]   = @bg_color
  60.  
  61.     base[NORMAL]      = @base_color
  62.     base[PRELIGHT]    = shade (0.95, @bg_color)
  63.     base[ACTIVE]      = mix(0.50, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  64.     base[SELECTED]    = mix(0.50, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  65.     base[INSENSITIVE] = @bg_color
  66.  
  67.     text[NORMAL]      = @text_color
  68.     text[PRELIGHT]    = @text_color
  69.     text[ACTIVE]      = @selected_fg_color
  70.     text[SELECTED]    = @selected_fg_color
  71.     text[INSENSITIVE] = darker (@bg_color)
  72.  
  73.     engine "clearlooks" 
  74.     {
  75.         colorize_scrollbar = FALSE
  76.         reliefstyle        = 1
  77.         menubarstyle       = 2      # 0 = flat, 1 = sunken, 2 = flat gradient
  78.         toolbarstyle       = 0      # 0 = flat, 1 = enable effects
  79.         animation          = TRUE
  80.         radius           = 2.0
  81.         style              = GUMMY
  82.  
  83.         # Set a hint to disable backward compatibility fallbacks.
  84.         hint = "use-hints"
  85.     }
  86. }
  87.  
  88. style "clearlooks-wide"
  89. {
  90.     xthickness   = 2
  91.     ythickness   = 2
  92.  
  93.     bg[SELECTED] = @selected_bg_color
  94. }
  95.  
  96. style "clearlooks-wider"
  97. {
  98.     xthickness   = 3
  99.     ythickness   = 3
  100.  
  101.     bg[SELECTED] = @selected_bg_color
  102. }
  103.  
  104. style "clearlooks-button" = "clearlooks-wider"
  105. {
  106.     bg[NORMAL]   = shade (0.98, @bg_color)
  107.     bg[PRELIGHT] = shade (1.04, @bg_color)
  108.     bg[ACTIVE]   = shade (0.92, @bg_color)
  109. }
  110.  
  111. style "clearlooks-notebook"
  112. {
  113.     bg[ACTIVE]   = shade (0.92, @bg_color)
  114.     bg[SELECTED] = @selected_bg_color
  115. }
  116.  
  117. style "clearlooks-tasklist" = "clearlooks-wide"
  118. {
  119. }
  120.  
  121. style "clearlooks-menu" = "clearlooks-wider"
  122. {
  123.     bg[NORMAL] = shade (1.04, @bg_color)
  124. }
  125.  
  126. style "clearlooks-menu-item" = "clearlooks-wider"
  127. {
  128.     bg[PRELIGHT] = mix(0.70, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  129.     bg[SELECTED] = mix(0.70, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  130.     fg[PRELIGHT] = @selected_fg_color
  131.  
  132.     engine "clearlooks" 
  133.     {
  134.         radius = 1.5
  135.     }
  136. }
  137.  
  138. style "clearlooks-separator-menu-item"
  139. {
  140. }
  141.  
  142. style "clearlooks-treeview"
  143. {
  144.     bg[SELECTED] = @selected_bg_color
  145.     fg[SELECTED] = @base_color
  146.  
  147.     engine "clearlooks" 
  148.     {
  149.         hint = "treeview"
  150.     }
  151. }
  152.  
  153. style "clearlooks-treeview-header"
  154. {
  155.     bg[SELECTED] = mix(0.50, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  156.  
  157.     engine "clearlooks" 
  158.     {
  159.         hint = "treeview-header"
  160.     }
  161. }
  162.  
  163. style "clearlooks-frame-title"
  164. {
  165.     fg[NORMAL] = lighter (@fg_color)
  166. }
  167.  
  168. style "clearlooks-tooltips" = "clearlooks-wider"
  169. {
  170.     bg[NORMAL] = @tooltip_bg_color
  171.     fg[NORMAL] = @tooltip_fg_color
  172. }
  173.  
  174. style "clearlooks-progressbar"
  175. {
  176.     xthickness = 1
  177.     ythickness = 1
  178.  
  179.     bg[SELECTED] = @selected_bg_color
  180.     fg[PRELIGHT] = @base_color
  181.  
  182.     engine "clearlooks"
  183.     {
  184.         hint = "progressbar"
  185.     }
  186. }
  187.  
  188. style "clearlooks-statusbar"
  189. {
  190.     engine "clearlooks"
  191.     {
  192.         hint = "statusbar"
  193.     }
  194. }
  195.  
  196. style "clearlooks-comboboxentry"
  197. {
  198.     # NOTE:
  199.     # If you set the appears-as-list option on comboboxes in the theme
  200.     # you should set this hint on the combobox instead.
  201.     engine "clearlooks"
  202.     {
  203.         hint = "comboboxentry"
  204.     }
  205. }
  206.  
  207. style "clearlooks-spinbutton"
  208. {
  209.     engine "clearlooks"
  210.     {
  211.         hint = "spinbutton"
  212.     }
  213. }
  214.  
  215. style "clearlooks-scale"
  216. {
  217.     engine "clearlooks"
  218.     {
  219.         hint  = "scale"
  220.         style = CLASSIC
  221.     }
  222. }
  223.  
  224. style "clearlooks-hscale"
  225. {
  226.     engine "clearlooks"
  227.     {
  228.         hint = "hscale"
  229.     }
  230. }
  231.  
  232. style "clearlooks-vscale"
  233. {
  234.     engine "clearlooks"
  235.     {
  236.         hint = "vscale"
  237.     }
  238. }
  239.  
  240. style "clearlooks-scrollbar"
  241. {
  242.     engine "clearlooks"
  243.     {
  244.         hint   = "scrollbar"
  245.         #style = CLASSIC
  246.     }
  247. }
  248.  
  249. style "clearlooks-hscrollbar"
  250. {
  251.     engine "clearlooks"
  252.     {
  253.         hint = "hscrollbar"
  254.     }
  255. }
  256.  
  257. style "clearlooks-vscrollbar"
  258. {
  259.     engine "clearlooks"
  260.     {
  261.         hint = "vscrollbar"
  262.     }
  263. }
  264.  
  265. style "clearlooks-menubar"
  266. {
  267.     engine "clearlooks"
  268.     {
  269.         hint = "menubar"
  270.     }
  271. }
  272.  
  273. style "clearlooks-nautilus-location"
  274. {
  275.     bg[NORMAL] = mix(0.50, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  276. }
  277.  
  278. style "metacity-frame"
  279. {
  280.     bg[SELECTED] = mix (0.25, @tooltip_fg_color, @selected_bg_color)
  281. }
  282.  
  283. style "clearlooks-radiocheck"
  284. {
  285.     text[PRELIGHT] = @base_color # Text on Mouseover
  286. }
  287.  
  288. style "clearlooks-panel"
  289. {
  290.     bg[SELECTED] = mix(0.70, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  291. }
  292.  
  293. #########################################
  294. # Matches
  295. #########################################
  296.  
  297. # Theme radio buttons and checkmarks
  298. class "GtkRadio*"                                style "clearlooks-radiocheck"
  299. class "GtkCheck*"                                   style "clearlooks-radiocheck"
  300.  
  301. # Keep proper colour for Metacity
  302. class "MetaFrames"                     style "metacity-frame"
  303. #class "GtkWindow"                            style "metacity-frame"
  304.  
  305. # Theme default style is applied to every widget
  306. class "GtkWidget"                        style "clearlooks-default"
  307.  
  308. # Increase the x/ythickness in some widgets
  309. class "GtkToolbar"                       style "clearlooks-default" 
  310. class "GtkRange"                         style "clearlooks-wide"
  311. class "GtkFrame"                         style "clearlooks-wide"
  312. class "GtkSeparator"                     style "clearlooks-wide"
  313. class "GtkEntry"                         style "clearlooks-wider"
  314.  
  315. class "GtkSpinButton"                      style "clearlooks-spinbutton"
  316. class "GtkScale"                           style "clearlooks-scale"
  317. class "GtkVScale"                          style "clearlooks-vscale"
  318. class "GtkHScale"                          style "clearlooks-hscale"
  319. class "GtkScrollbar"                       style "clearlooks-scrollbar"
  320. class "GtkVScrollbar"                      style "clearlooks-vscrollbar"
  321. class "GtkHScrollbar"                      style "clearlooks-hscrollbar"
  322.  
  323. # General matching following, the order is choosen so that the right styles override each other
  324. # eg. progressbar needs to be more important then the menu match.
  325.  
  326. # This is not perfect, it could be done better
  327. # (That is modify *every* widget in the notebook, and change those back that
  328. # we really don't want changed)
  329. widget_class "*<GtkNotebook>*<GtkEventBox>"         style "clearlooks-notebook"
  330. widget_class "*<GtkNotebook>*<GtkDrawingArea>"      style "clearlooks-notebook"
  331. widget_class "*<GtkNotebook>*<GtkLayout>"           style "clearlooks-notebook"
  332.  
  333. widget_class "*<GtkButton>"                  style "clearlooks-button"
  334. widget_class "*<GtkNotebook>"                style "clearlooks-notebook"
  335. widget_class "*<GtkStatusbar>*"              style "clearlooks-statusbar"
  336.  
  337. widget_class "*<GtkComboBoxEntry>*"            style "clearlooks-comboboxentry"
  338. widget_class "*<GtkCombo>*"                     style "clearlooks-comboboxentry"
  339.  
  340. widget_class "*<GtkMenuBar>*"                   style "clearlooks-menubar"
  341. widget_class "*<GtkMenu>*"                      style "clearlooks-menu"
  342. widget_class "*<GtkMenuItem>*"                  style "clearlooks-menu-item"
  343. widget_class "*<GtkSeparatorMenuItem>*"         style "clearlooks-separator-menu-item"
  344.  
  345. widget_class "*.<GtkFrame>.<GtkLabel>"             style "clearlooks-frame-title"
  346. widget_class "*.<GtkTreeView>*"                    style "clearlooks-treeview"
  347.  
  348. widget_class "*<GtkProgressBar>"                   style "clearlooks-progressbar"
  349.  
  350. # Treeview header
  351. widget_class "*.<GtkTreeView>.<GtkButton>"         style "clearlooks-treeview-header"
  352. widget_class "*.<GtkCTree>.<GtkButton>"            style "clearlooks-treeview-header"
  353. widget_class "*.<GtkList>.<GtkButton>"             style "clearlooks-treeview-header"
  354. widget_class "*.<GtkCList>.<GtkButton>"            style "clearlooks-treeview-header"
  355.  
  356. # Workarounds for Evolution
  357. widget_class "*.ETable.ECanvas"                style "clearlooks-treeview-header"
  358. widget_class "*.ETree.ECanvas"                style "clearlooks-treeview-header"
  359.  
  360. # The window of the tooltip is called "gtk-tooltip"
  361. ################################
  362. # FIXME:
  363. # This will not work if one embeds eg. a button into the tooltip.
  364. # As far as I can tell right now we will need to rework the theme
  365. # quite a bit to get this working correctly.
  366. # (It will involve setting different priorities, etc.)
  367. ################################
  368. widget "gtk-tooltip*"                     style "clearlooks-tooltips"
  369.  
  370. ###################################################
  371. # Special cases and work arounds
  372. ###################################################
  373.  
  374. # Special case the nautilus-extra-view-widget
  375. # ToDo: A more generic approach for all applications that have a widget like this.
  376. widget "*.nautilus-extra-view-widget"             style : highest "clearlooks-nautilus-location"
  377.  
  378. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  379. # Note that the work around assumes that the combobox is _not_ in
  380. # appears-as-list mode.
  381. # Similar hack also in the menuitem style.
  382. # This style does not affect GtkComboBoxEntry, it does have an effect
  383. # on comboboxes in appears-as-list mode though.
  384. style "clearlooks-combobox-text-color-workaround"
  385. {
  386.     text[NORMAL]      = @fg_color
  387.     text[PRELIGHT]    = @fg_color
  388.     text[ACTIVE]      = @fg_color
  389.     text[SELECTED]    = @selected_fg_color
  390.     text[INSENSITIVE] = darker (@bg_color)
  391. }
  392. widget_class "*.<GtkComboBox>.<GtkCellView>"        style "clearlooks-combobox-text-color-workaround"
  393.  
  394. style "clearlooks-menuitem-text-is-fg-color-workaround"
  395. {
  396.     text[NORMAL]        = @fg_color
  397.     text[PRELIGHT]      = @selected_fg_color
  398.     text[ACTIVE]        = @fg_color
  399.     text[SELECTED]      = @selected_fg_color
  400.     text[INSENSITIVE]   = darker (@bg_color)
  401. }
  402.  
  403. widget "*.gtk-combobox-popup-menu.*"               style "clearlooks-menuitem-text-is-fg-color-workaround"
  404.  
  405. # Work around the usage of GtkLabel inside GtkListItems to display text.
  406. # This breaks because the label is shown on a background that is based on the
  407. # base color set.
  408. style "clearlooks-fg-is-text-color-workaround"
  409. {
  410.     bg[SELECTED]    = @selected_bg_color
  411.     fg[NORMAL]      = @text_color
  412.     fg[PRELIGHT]    = @text_color
  413.     fg[ACTIVE]      = @selected_fg_color
  414.     fg[SELECTED]    = @selected_fg_color
  415.     fg[INSENSITIVE] = darker (@bg_color)
  416. }
  417.  
  418. widget_class "*<GtkListItem>*"                 style "clearlooks-fg-is-text-color-workaround"
  419. # The same problem also exists for GtkCList and GtkCTree
  420. # Only match GtkCList and not the parent widgets, because that would also change the headers.
  421.  
  422. widget_class "*<GtkCList>"                 style "clearlooks-fg-is-text-color-workaround"
  423.  
  424. style "clearlooks-evo-new-button-workaround"
  425. {
  426.  
  427.     engine "clearlooks"
  428.     {
  429.         toolbarstyle = 0
  430.     }
  431. }
  432. widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "clearlooks-evo-new-button-workaround"
  433.  
  434. # Theme panel elements
  435. widget "*PanelWidget*"                     style "clearlooks-panel"
  436. widget "*PanelApplet*"                     style "clearlooks-panel"
  437. widget "*fast-user-switch*"                style "clearlooks-panel"
  438. class "PanelApp*"                     style "clearlooks-panel"
  439. class "PanelToplevel*"                     style "clearlooks-panel"
  440. widget_class "*Mail*"                     style "clearlooks-panel"
  441. widget_class "*notif*"                     style "clearlooks-panel"
  442. widget_class "*Notif*"                     style "clearlooks-panel"
  443.